//
//  XYtest.h
//  aaaaa
//
//  Created by qianfeng on 15/8/5.
//  Copyright (c) 2015年 qianfeng. All rights reserved.
//

#import <Foundation/Foundation.h>
//1.将传入的字符串逆序
//比如输入 @"abcdef"输出@"fedcba"
@interface XYtest : NSObject

+ (NSString *) niXu:(NSString *)str;
//2.压缩字符串
//比如输入@"aaabbbcceaa" 输出@"3a3b2c1e2a"
+ (NSString *) yaSuo:(NSString *)str;


//3.对字符串按字母顺序进行排序
//比如输入@"aczabczab"  输出@"aaabbcczz"
+(NSString*)sortString:(NSString*)srcStr;

//4.将原字符串进行小写转大写，大写转小写
//比如输入 @"aBCdEfGA" 输出 @"AbcDeFga"
+(NSString*)reveserChacter:(NSString*)srcStr;

//5.替换字符串srcStr中从startKey到endKey之间的字符串//返回结果
//比如输入srcStr=@"abcdaabbccdef" startKey=@"da" endKey=@"cde" 输出 @"abbc"
+(NSString *)replaceString:(NSMutableString *)srcStr  betweenStartKey:(NSString* )startKey  andEndKey:(NSString*)endKey ;
 
@end
